<div class="form-group">
    <label for="formGroupExampleInput">标题</label>
    <input type="text" class="form-control" id="formGroupExampleInput" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="carousel.title">
    <small id="emailHelp" class="form-text text-muted">标题不要包含特殊字符，长度在30字以内</small>
  </div>

<div class="form-group">
      <label for="formGroupExampleInput">描述</label>
      <input type="text" class="form-control" id="formGroupExampleInput" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="carousel.discription">
  </div>

  <div class="form-group">
      <label for="formGroupExampleInput">图片</label>
      <input type="text" class="form-control" id="formGroupExampleInput" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="carousel.pic">
      <small id="emailHelp" class="form-text text-muted">请上传图片</small>
      <input type="file" (change)="onFileChanged($event)">
      <button (click)="onUpload()">上传</button>
    </div>

    <div class="form-group">
        <label for="formGroupExampleInput">详细内容</label>
        <input type="text" class="form-control" id="formGroupExampleInput" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="carousel.content">
        
      </div>

      <button type="button" class="btn btn-outline-primary" (click)="save()">保存</button>
      <button type="button" class="btn btn-outline-warning" (click)="goBack()">返回</button>